<?php

		
		class aboutAction extends Action{
			
			public function help(){
				$dao = new feedbackModel();
				import("ORG.Util.Page");
				$count 		= 	$dao->count("","id" ); 	
				$listRows 	= 	C("publicListRows"); 	
				$p 			= 	new Page($count,$listRows); 
				$p			->	setConfig('header' ,'篇留言 '); 
				$list		=	$dao->findAll("","*",'regtime desc',$p->firstRow.','.$p->listRows);
				$page  		= 	$p->show();
				$this		->	assign("list",$list); 											
				$this		->	assign("page",$page);
				$this		->  display();
			}
			
			public function posthelp(){
				if(md5($_POST["checknum"]) != $_SESSION["verify"]){
        			$this->error("验证码错误");
        		}else{
					$dao = new feedbackModel();
					if($dao->create()){
						$dao->regtime = time();
						if($dao->add()){
							$this->redirect("help");
						}else{
							$this->error("添加失败");
						}
					}else{
						$this->error($dao->getError());
					}
        		}
			}

			public function terms(){
				$this->display();
			}

			public function prvicy(){
				$this->display();
			}

			public function feedback(){
				
			}
			
			public function verify(){
				import("ORG.Util.Image");
				Image::buildImageVerify();
				//Image::GBVerify();
			}
			
		}
?>